package com.ruoyi.activitie.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activitie.mapper.ActivitieMapper;
import com.ruoyi.activitie.domain.Activitie;
import com.ruoyi.activitie.service.IActivitieService;

/**
 * 活动信息Service业务层处理
 * 
 * @author anyunyi
 * @date 2025-05-29
 */
@Service
public class ActivitieServiceImpl implements IActivitieService 
{
    @Autowired
    private ActivitieMapper activitieMapper;

    /**
     * 查询活动信息
     * 
     * @param id 活动信息主键
     * @return 活动信息
     */
    @Override
    public Activitie selectActivitieById(Long id)
    {
        return activitieMapper.selectActivitieById(id);
    }

    /**
     * 查询活动信息列表
     * 
     * @param activitie 活动信息
     * @return 活动信息
     */
    @Override
    public List<Activitie> selectActivitieList(Activitie activitie)
    {
        return activitieMapper.selectActivitieList(activitie);
    }

    /**
     * 新增活动信息
     * 
     * @param activitie 活动信息
     * @return 结果
     */
    @Override
    public int insertActivitie(Activitie activitie)
    {
        return activitieMapper.insertActivitie(activitie);
    }

    /**
     * 修改活动信息
     * 
     * @param activitie 活动信息
     * @return 结果
     */
    @Override
    public int updateActivitie(Activitie activitie)
    {
        return activitieMapper.updateActivitie(activitie);
    }

    /**
     * 批量删除活动信息
     * 
     * @param ids 需要删除的活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActivitieByIds(Long[] ids)
    {
        return activitieMapper.deleteActivitieByIds(ids);
    }

    /**
     * 删除活动信息信息
     * 
     * @param id 活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActivitieById(Long id)
    {
        return activitieMapper.deleteActivitieById(id);
    }
}
